package file;

import java.io.File;

public class ListFileDemo {
    public static void main(String[] args) {
        File file=new File("c:\\");

        System.out.println(file.listFiles().length);
        File[] subs=file.listFiles();
        for (File f:subs
             ) {
            System.out.println(f.getName());
        }

    }
}
